/**
 * Project Name:lf_console
 * File Name:DirectExecutor.java
 * Package Name:com.lf.api.example
 * Date:2016年9月19日下午8:17:47
 * Copyright (c) 2016, chenzhou1025@126.com All Rights Reserved.
 *
*/

package com.lf.api.example;

import java.util.concurrent.Executor;

/**
 * ClassName:DirectExecutor <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016年9月19日 下午8:17:47 <br/>
 * @author   wxm
 * @version  
 * @since    JDK 1.6
 * @see 	 
 */
public class DirectExecutor implements Executor {

	@Override
	public void execute(Runnable command) {
		command.run();	
	}

	public static void main(String[] args) {
		DirectExecutor executor = new DirectExecutor();
		executor.execute(new Runnable() {
			@Override
			public void run() {
				System.out.println("xxst is a good man.");
			}
		});
	}
}

